import json
dict_content={"name":"jack"}
with open('JSON文件写入.json', 'w')as f:
    json.dump(dict_content,f)
print(dict_content)